app.controller("indexController",function($scope,indexService){
    $scope.loginName = "";
    $scope.getLoginName = function(){
        indexService.getLoginName().then(function(result){
            $scope.loginName = result.data.name;
        });
    }
});